package com.cloudm.technician.ui.modules.cloudm_box.upload_pic_token

import com.cloudm.technician.data.network.CommonApi
import com.cloudm.technician.di.ForUploadPic
import com.cloudm.technician.di.PerFragment
import com.qiniu.android.storage.UploadManager
import dagger.Module
import dagger.Provides

/**
 * 作者: wesley
 * 时间: 2017/12/23
 * 描述: 提供实例
 */

@Module
class UploadTokenPicPresenterModule(private val view: UploadPicTokenContract.View) {

    @PerFragment
    @Provides
    fun provideUploadTokenPicPresenter(@ForUploadPic commonApi: CommonApi,
                                       uploadManager: UploadManager) = UploadPicTokenPresenter(view,
            commonApi, uploadManager)
}